import { useState } from 'react'
// useStage 在toggle切换组件提供便利
import { useToggle } from 'ahooks'

function App() {
  const [stage,{toggle}] = useToggle()
  return (
    <div className="App">
      <p>Current Boolean: {String(stage)}</p>
      <p>
        <button onClick={()=>toggle}>Toggle</button>
      </p>
    </div>
  )
}

export default App
